Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grapesjs-plugin-forms

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grapesjs-plugin-forms

Set of forms components and blocks for GrapesJS editor

  • 0.3.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.7K
increased by57.63%
Maintainers
1
Weekly downloads
 
Created
Source

GrapesJS Forms

This plugin adds some basic form components and blocks to help working with forms easier

Demo

New components: form input textarea select checkbox radio button label

Options

  • blocks Which blocks to add, default: ['form', 'input', 'textarea', 'select', 'button', 'label', 'checkbox', 'radio'] (all),
  • labelTraitMethod Method trait label, default: 'Method',
  • labelTraitAction Action trait label, default: 'Action',
  • labelTraitState State trait label, default: 'State',
  • labelTraitId ID trait label, default: 'ID',
  • labelTraitFor For trait label, default: 'For',
  • labelInputName Input name label, default: 'Input',
  • labelTextareaName Textarea name label, default: 'Textarea',
  • labelSelectName Select name label, default: 'Select',
  • labelCheckboxName Checkbox name label, default: 'Checkbox',
  • labelRadioName Radio name label, default: 'Radio',
  • labelButtonName Button name label, default: 'Button',
  • labelTraitName Name trait label, default: 'Name',
  • labelTraitPlaceholder Placeholder trait label, default: 'Placeholder',
  • labelTraitValue Value trait label, default: 'Value',
  • labelTraitRequired Required trait label, default: 'Required',
  • labelTraitType Type trait label, default: 'Type',
  • labelTraitOptions Options trait label, default: 'Options',
  • labelTraitChecked Checked trait label, default: 'Checked',
  • labelTypeText Text type label, default: 'Text',
  • labelTypeEmail Email type label, default: 'Email',
  • labelTypePassword Password type label, default: 'Password',
  • labelTypeNumber Number type label, default: 'Number',
  • labelTypeSubmit Submit type label, default: 'Submit',
  • labelTypeReset Reset type label, default: 'Reset',
  • labelTypeButton Button type label, default: 'Button',
  • labelNameLabel Label type label, default: 'Label',
  • labelForm Form type label, default: 'Form',
  • labelSelectOption Select option type label, default: '- Select option -',
  • labelOption Option label, default: 'Option'

Download

  • npm i grapesjs-plugin-forms

Usage

<link href="path/to/grapes.min.css" rel="stylesheet"/>
<script src="path/to/grapes.min.js"></script>
<script src="path/to/grapesjs-plugin-forms.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      fromElement: 1,
      container : '#gjs',
      plugins: ['gjs-plugin-forms'],
      pluginsOpts: {
        'gjs-plugin-forms': {/* ...options */}
      }
  });
</script>

Development

Clone the repository

$ git clone https://github.com/artf/grapesjs-plugin-forms.git
$ cd grapesjs-plugin-forms

Install it

$ npm i

The plugin relies on GrapesJS via peerDependencies so you have to install it manually (without adding it to package.json)

$ npm i grapesjs --no-save

Start the dev server

$ npm start

License

BSD 3-Clause

Keywords

FAQs

Package last updated on 18 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc